﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SlideshowGenerator
{
    public class SlideshowElement
    {
        private readonly List<string> _captionImages = new List<string>();

        /// <summary>
        /// Gets the path to the caption image.
        /// </summary>
        public List<string> CaptionImages
        {
            get { return _captionImages; }
        }

        private readonly List<string> _slideshowImages = null;

        /// <summary>
        /// Gets the list of paths to the slideshow images.
        /// </summary>
        public List<string> SlideshowImages
        {
            get { return _slideshowImages; }
        }

        private int _captionImageFrequency = Configuration.CaptionImageFrequency;

        /// <summary>
        /// Gets or sets the frequency of appearance of the caption image, 
        /// which is initialized with the conigured value in the options.
        /// </summary>
        public int CaptionImageFrequency
        {
            get { return _captionImageFrequency; }
            set { _captionImageFrequency = value; }
        }

        /// <summary>
        /// Creates a new SlideshowElement, with a set of caption images and a nullable set of slideshow images.
        /// </summary>
        /// <param name="captionImages"></param>
        /// <param name="slideshowImages"></param>
        public SlideshowElement(List<string> captionImages, List<string> slideshowImages)
        {
            _captionImages = captionImages;
            _slideshowImages = slideshowImages;
        }
    }
}
